package org.ganesh.android;



 


import android.app.Activity;

import android.os.Bundle;

import android.widget.TextView;



public class TrainStatus extends Activity {
    /** Called when the activity is first created. */
	

	
	
	 
	
	@Override
    public void onCreate(Bundle extras) {
        super.onCreate(extras);
        setContentView(R.layout.train_status);
        extras = this.getIntent().getExtras();
        
        TextView tvTrainNumber = (TextView)findViewById(R.id.tvTrainName);
        TextView tvStationCode = (TextView)findViewById(R.id.tvStationName);
        
        TextView tvtvScdATime = (TextView)findViewById(R.id.tvScdATime);
        TextView tvDelayA = (TextView)findViewById(R.id.tvDelayA);
        TextView tvActualExpA = (TextView)findViewById(R.id.tvActualExpA);
        
        TextView tvScdDTime = (TextView)findViewById(R.id.tvScdDTime);
        TextView tvDelayD = (TextView)findViewById(R.id.tvDelayD);
        TextView tvActExpD = (TextView)findViewById(R.id.tvActExpD);
        TextView tvUpdated = (TextView)findViewById(R.id.tvUpdated);
          
        

	    
	        tvTrainNumber.setText(extras.getString("resultTrainName"));
	        tvStationCode.setText(extras.getString("resultstationName"));
	        
	        tvtvScdATime.setText(extras.getString("resultSTA"));
	       
	        tvDelayA.setText(extras.getString("resultDelay"));
	        tvActualExpA.setText(extras.getString("resultExptArv"));
	        
	        tvScdDTime.setText(extras.getString("resultSDT"));
	        tvDelayD.setText(extras.getString("resultDelayDepart"));
	        tvActExpD.setText(extras.getString("resultExpectedDepart"));
	        tvUpdated.setText(extras.getString("resultLastUpdated"));
	        
	    
	        }
	         
	       
        
    }
	    

	
